import Vue from 'vue'
import Router from 'vue-router'
import Login from  '../components/login/login.vue'
import Home from '../components/home/home'
import Users from '../components/users/users'

Vue.use(Router)

export default new Router({
  routes: [
    {path:'/',redirect:'/login'},
    {name:'login',path: '/login', component:Login},
    {name:'home',path: '/', component:Home,
      children:[
        {name:'users',path: 'users', component:Users}
      ]
    }
  ]
})
